import request from '@/utils/request'

// 项目分配设备-已分配的设备列表
export function listProEquipment(query) {
  return request({
    url: '/supervise/proEquipmentApi/list',
    method: 'post',
    params: query
  })
}

// 项目分配设备-已分配的设备-新增
export function addProEquipment(data) {
  return request({
    url: '/supervise/proEquipmentApi/batchAddProEquipment',
    method: 'post',
    data: data
  })
}

// 项目分配设备-已分配的设备-弹层设备列表 2021年7月5日14:31:56
export function listProEquipmentNotPermission(params) {
  return request({
    url: '/sys/systemEquipmentApi/getAvailableEquipmentsByProject',
    method: 'post',
    params
  })
}

// 项目分配设备-已分配的设备-移除绑定
export function removeProEquipment(data) {
  return request({
    url: '/supervise/proEquipmentApi/removeProEquipmentById',
    method: 'post',
    data
  })
}

// 项目设备-勘探点列表
export function listSelectByProEquipmentId(query) {
  return request({
    url: '/supervise/explorationApi/selectByProEquipmentId',
    method: 'post',
    params: query
  })
}

// 项目设备分配勘探点新增
export function addProEquipmentExploration(data) {
  return request({
    url: '/supervise/proEquipmentExplorationApi/addByEquipmentExploration',
    method: 'post',
    data: data
  })
}

// 项目设备分配勘探点删除
export function removeProEquipmentExploration(id) {
  return request({
    url: '/supervise/proEquipmentExplorationApi/remove',
    method: 'post',
    params: id
  })
}

// 项目勘探设备无权限
export function listNoProEquipment(query) {
  return request({
    url: '/supervise/proEquipmentApi/listNoPermission',
    method: 'post',
    params: query
  })
}

